import request from '@/utils/request'

// 查询安全知识库分页
export function pageSecurityRep(query) {
  return request({
    url: '/base/securityRep/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询安全知识库列表
export function listSecurityRep(query) {
  return request({
    url: '/base/securityRep/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询安全知识库详细
export function getSecurityRep(id) {
  return request({
    url: '/base/securityRep/info/' + id,
    method: 'get'
  })
}

// 新增安全知识库
export function addSecurityRep(data) {
  return request({
    url: '/base/securityRep',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改安全知识库
export function updateSecurityRep(data) {
  return request({
    url: '/base/securityRep',
    method: 'put',
    data: data
  })
}

// 删除安全知识库
export function delSecurityRep(data) {
  return request({
    url: '/base/securityRep/remove/batch',
    method: 'delete',
    data
  })
}

// 导出安全知识库
export function exportSecurityRep(query) {
  return request({
    url: '/base/securityRep/export',
    method: 'get',
    params: query
  })
}

// 下载模板安全知识库
export function downImportTemplate() {
  return request({
    url: '/base/securityRep/importTemplate',
    method: 'get'
  })
}